package Hw1;

import Hw1.A;

public class Test01 {
    public static void main(String[] args) {
        System.out.println("请输入初始值：");
        A a =new A();
        System.out.println("开始猜：");
        B b = new B();
        while (a.v != b.guess ) {
            if(a.v > b.guess ) {
                System.out.println("小了");
            } else if(a.v < b.guess ) {
                System.out.println("大了");
            }
            b.setGuess();
        }
        System.out.println("猜对了");
    }
}

